package com.hqyj.tmall.service.serviceImpl;

import com.hqyj.mapper.ProductImageMapper;
import com.hqyj.pojo.ProductImage;
import com.hqyj.tmall.service.ProductImageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductImageImpl implements ProductImageService {
    @Resource
    private ProductImageMapper productImageMapper;

    @Override
    public ProductImage findAllbyImag() {
        List<ProductImage> productImages = productImageMapper.selectAll();

        System.out.println(productImages+"888888888888888888888888");
        ProductImage productImag=productImages.get(0);
        return productImag;
    }
}
